/// mineId : 0
/// userId : 1463
/// createTime : "2021-02-15 17:02:39"
/// workUnitName : "专职副书记三级任命"
/// workFileNumber : "xc00987"
/// startStudyTime : "2021-02-15"
/// endStudyTime : "2021-02-16"
/// workFile : 1
/// department : "矿领导"
/// id : 49
/// reason : "年限"
/// statues : 0
/// updateTime : "2021-02-15 17:02:39"
/// userPort : "专职副书记三级"
/// remove : true
/// update : true

class BeanWork {
  int mineId;
  int userId;
  String createTime;
  String workUnitName;
  String workFileNumber;
  String startStudyTime;
  String endStudyTime;
  int workFile;
  String department;
  int id;
  String reason;
  int statues;
  String updateTime;
  String userPort;
  bool remove;
  bool update;

  static BeanWork fromMap(Map<String, dynamic> map) {
    if (map == null) return null;
    BeanWork beanWorkBean = BeanWork();
    beanWorkBean.mineId = map['mineId'];
    beanWorkBean.userId = map['userId'];
    beanWorkBean.createTime = map['createTime'];
    beanWorkBean.workUnitName = map['workUnitName'];
    beanWorkBean.workFileNumber = map['workFileNumber'];
    beanWorkBean.startStudyTime = map['startStudyTime'];
    beanWorkBean.endStudyTime = map['endStudyTime'];
    beanWorkBean.workFile = map['workFile'];
    beanWorkBean.department = map['department'];
    beanWorkBean.id = map['id'];
    beanWorkBean.reason = map['reason'];
    beanWorkBean.statues = map['statues'];
    beanWorkBean.updateTime = map['updateTime'];
    beanWorkBean.userPort = map['userPort'];
    beanWorkBean.remove = map['remove'];
    beanWorkBean.update = map['update'];
    return beanWorkBean;
  }

  Map toJson() => {
        "mineId": mineId,
        "userId": userId,
        "createTime": createTime,
        "workUnitName": workUnitName,
        "workFileNumber": workFileNumber,
        "startStudyTime": startStudyTime,
        "endStudyTime": endStudyTime,
        "workFile": workFile,
        "department": department,
        "id": id,
        "reason": reason,
        "statues": statues,
        "updateTime": updateTime,
        "userPort": userPort,
        "remove": remove,
        "update": update,
      };
}
